約 6,037,660 件
https://w.atwiki.jp/allegory/pages/13.html
概要 正式名称 (Asynchronous JavaScript + XML) JavaScript CSS DOM XML XMLHttpRequet サーバーサイド(PHP Perl? Java DB など)を組み合わせて連携することが可能。 XHTML?とCSSを用いたプレゼンテーション DOMによる表示、相互作用 XMLHttpRequetによる非同期通信を行う 上記のものをJavaScriptによって結びつけを行う 利点 必要なデータのみを取得できる点。 サーバーサイドの場合にサーバーに掛かっていた負担がクライアント側に移り軽減する点。 画面遷移を必要としないアプリケーションが作成可能になる。(webブラウサみので動作) 欠点 Javascriptがブラウザ上で実行される為、OSのやブラウザの違いに弱い事。 セキュリティの低下を招く恐れがある。URIが見えない状態 通信が行われているのかが分かりづらい。 Javascriptを有効にする必要がある XMLHttpRequestに標準がないので、文字コードMIMEタイプの扱いについて、ブラウザによって微妙な違いが生じる事。 Ajaxエンジンからアクセス可能なので、元ページと同じドメイン内のURLのみである事。 プログラムが簡単に覗けてしまう。 Ajaxの利用例 Google Maps API lightbox 参考外部リンク GoogleMaps
https://w.atwiki.jp/api_programming/pages/214.html
Index (A) » Toybox » Application » AppBase Class Toybox Application AppBase Inherits Lang Object show all Overview AppBase is the base class for an app. すべてのアプリケーションは、このクラスを継承し、その method を継承してアプリケーションのライフサイクルを管理する。 実装としては、このくらいをオーバーライドして、エントリポイントを提供し、次のメソッドでアプリケーションを操作する。 onStart() getInitialView() getGoalView() getServiceDelegate() onSettingsChanged() onStop() "widgets" と "watch-apps" では、次の順番で実行される。 onStart() getInitialView() onStop() For watch faces and data fields, only getInitialView() is called. Every AppBase object has access to an object store to persist data. Examples Shows basic app life cycle using Toybox.Application; class AppLifeCycle extends Application.AppBase { // initialize the AppBase class function initialize() { AppBase.initialize(); } // onStart() is called on application start up function onStart(state) { } // onStop() is called when your application is exiting function onStop(state) { } // Return the initial view of your application here function getInitialView() { return [new AppLifeCycleView()]; } } Since 1.0.0 Instance Method Summary collapse allowTrialMessage ⇒ Toybox Lang Boolean Check if application trial messages are allowed. clearProperties ⇒ Object deprecated Deprecated. This method will be dropped in Connect IQ 4.0.0 deleteProperty(key) ⇒ Object deprecated Deprecated. This method will be dropped in Connect IQ 4.0.0 getGoalView(goalType) ⇒ Toybox Lang Array Override to provide a WatchUi.View for a goal that has triggered within a watch face. getInitialView ⇒ Toybox Lang Array Override to provide the initial WatchUi.View and WatchUi.InputDelegate of the application. getProperty(key) ⇒ Toybox Lang Object Get the data associated with a given key from the object store. getServiceDelegate ⇒ Toybox Lang Array Get a ServiceDelegate to run background tasks for this app. getTrialDaysRemaining ⇒ Toybox Lang Number Override to return the number of days remaining in the trial. isTrial ⇒ Toybox Lang Boolean Check if the application is in trial mode. loadProperties ⇒ Object deprecated Deprecated. loadProperties() will be removed in Connect IQ 3.0.0 onBackgroundData(data) ⇒ Object Handle data passed from a ServiceDelegate to the application. onSettingsChanged ⇒ Object Called when the application settings have been changed by Garmin Connect Mobile (GCM) while while the app is running. onStart(state) ⇒ Object Method called at startup to allow handling of app initialization. onStop(state) ⇒ Object Override to handle application cleanup upon termination. saveProperties ⇒ Object deprecated Deprecated. saveProperties() will be removed in Connect IQ 3.0.0 setProperty(key, value) ⇒ Object Store the given data in the object. validateProperty(key, value) ⇒ Object Validate a property being stored. Methods inherited from Lang Object equals, hashCode, method, toString, weak Instance Method Details allowTrialMessage ⇒ Toybox Lang Boolean Check if application trial messages are allowed. Returns true if the application should allow the product to push unlock instruction pages for locked apps. Returns true by default. Returns (Toybox Lang Boolean) — Returns true if trial messages should be shown, otherwise false. Since 2.3.0 clearProperties ⇒ Object Deprecated. This method will be dropped in Connect IQ 4.0.0 Note Background processes cannot clear properties. Clear the object store for the application. Raises (Toybox Application ObjectStoreAccessException) — Thrown if clearProperties() is called from a Background process See Also Storage Since 1.0.0 deleteProperty(key) ⇒ Object Deprecated. This method will be dropped in Connect IQ 4.0.0 Note Background processes cannot delete properties. Delete the given key from the object store. Parameters key (Toybox Lang Object) — The key to delete Raises (Toybox Application ObjectStoreAccessException) — Thrown if deleteProperty() is called from a Background process See Also Storage Since 1.0.0 getGoalView(goalType) ⇒ Toybox Lang Array Override to provide a WatchUi.View for a goal that has triggered within a watch face. If a goal is reached when a watch face is running, this function will be triggered. The type of goal that was met will be provided, and the AppBase should return a View that displays a goal reached message and/or animations for that goal. If a View is returned from this function, the main watch face view will be shutdown, and then new View will pushed. If this method is not overridden in the AppBase, or if it returns null, the native goal screens will be shown. Parameters goalType (Toybox Lang Number) — The goal type that has triggered. The goalType will be from the GOAL_TYPE_* enumeration. Returns (Toybox Lang Array) — An Array containing a WatchUi.View Since 1.3.0 getInitialView ⇒ Toybox Lang Array Override to provide the initial WatchUi.View and WatchUi.InputDelegate of the application. Providing a WatchUi.InputDelegate is optional for widgets and watch-apps. For watch faces and data fields, an Array containing just a WatchUi.View should be returned as input is not available for these app types. Returns (Toybox Lang Array) — An Array containing a WatchUi.View and an optional WatchUi.InputDelegate Since 1.0.0 getProperty(key) ⇒ Toybox Lang Object Note Symbols can change from build to build and are not to be used for for Keys or Values. Get the data associated with a given key from the object store. Properties must first be set with setProperty() before they are can be obtained with getProperty. Parameters key — The key of the value to retrieve from the object store (cannot be a Symbol) Returns (Toybox Lang Object) — The content associated with the key, or null if the key is not in the object store See Also setProperty() Background Properties Storage Since 1.0.0 getServiceDelegate ⇒ Toybox Lang Array Get a ServiceDelegate to run background tasks for this app. When a ServiceDelegate is retrieved, the following will occur The method triggered within the ServiceDelegate will be run The background task will exit using Background.exit() or System.exit() The background task will be automatically terminated after 30 seconds if it is not exited by these methods Returns (Toybox Lang Array) — An Array containing a System.ServiceDelegate See Also Background Since 2.3.0 getTrialDaysRemaining ⇒ Toybox Lang Number Override to return the number of days remaining in the trial If a developer wishes to implement time-based app trials, they will need to override this function to return the number of days remaining in the trial. This function will be called on app startup to determine if a trial is active and push a notice to the user of how many days remain in the trial. Note that if allowTrialMessage() is overridden to return false, no notifications will be displayed. Returns (Toybox Lang Number) — A Number object indicating the number of days remaining in the trial, or null if no timed trial is active. Since 2.3.0 isTrial ⇒ Toybox Lang Boolean Check if the application is in trial mode. This will always return true for development build apps. If the app has been signed by the store it will return the current unlock state of the app. This method should not be overridden or your trial mode functionality could cease to function correctly. Returns (Toybox Lang Boolean) — Return true if the app is “locked” and considered to be in trial mode, otherwise false if the app has been unlocked. Since 2.3.0 loadProperties ⇒ Object Deprecated. loadProperties() will be removed in Connect IQ 3.0.0 Load the properties for the application Since 1.0.0 onBackgroundData(data) ⇒ Object Handle data passed from a ServiceDelegate to the application. When the Background process terminates, a data payload may be available. If the main application is active when this occurs, the data will be passed directly to the application s onBackgroundData() method. If the main application is not active, the data will be saved until the next time the application is launched and will be passed to the application after the onStart() method completes. Parameters data (Toybox Lang Object) — The data passed from the background process. See Also Background Since 2.3.0 onSettingsChanged ⇒ Object Called when the application settings have been changed by Garmin Connect Mobile (GCM) while while the app is running. Override this method to change app behavior when settings change. This is typically used to call for an update to the WatchUi.requestUpdate() Examples function onSettingsChanged() { // triggered by settings change in GCM _mainView.handlSettingUpdate(); WatchUi.requestUpdate(); // update the view to reflect changes } See Also WatchUi.requestUpdate() for more details Since 1.2.0 onStart(state) ⇒ Object Method called at startup to allow handling of app initialization. Before the initial WatchUi.View is retrieved, onStart() is called. Application level settings can be initialized or retrieved from the object store before the initial View is created. This method must be overridden to handle your own app initialization. Examples onStart() used with Intent function onStart(state) { if (state != null) { infoString = "Args " + state.toString(); } } Parameters state (Toybox Lang Dictionary) — Required. If an Intent is not used to launch the application, then an empty “state” Dictionary is used. If an Intent is used to start the application the Dictionary contains the arguments from the Intent. See Also Intent API Documentation Since 1.0.0 onStop(state) ⇒ Object Override to handle application cleanup upon termination. If the application needs to save data to the object store it should be done in this function. Once the function is complete, the application will terminate. Parameters state (Toybox Lang Dictionary) — Required. If an Intent is not used to launch an application on stop of the current application an empty “state” Dictionary is used. If an Intent is used to start another application, then the Dictionary contains the arguments from the Intent. See Also Intent API Documentation Since 1.0.0 saveProperties ⇒ Object Deprecated. saveProperties() will be removed in Connect IQ 3.0.0 Save the properties for the application Since 1.0.0 setProperty(key, value) ⇒ Object Note Background processes cannot save properties. Note Symbols can change from build to build and are not to be used for for Keys or Values. Store the given data in the object. Keys can be of the following types String Number Float Boolean Char Long Double Values can be of the following types String Number Float Boolean Char Long Double null Values can also be of type Array or Dictionary containing the above listed types. There is a limit on the size of the Properties of 8KB. If you reach this limit, the properties will not be saved or reloaded. Examples using Toybox.Application; var app = Application.getApp(); app.setProperty("number", 2); // set value for "number" key app.setProperty("float", 3.14); // set value for "float" key app.setProperty("string", "Hello World!"); // set value for "string" key app.setProperty("boolean", true); // set value for "boolean" key var int = app.getProperty(number); // get value for "number" key var float = app.getProperty(float); // get value for "float" key var string = app.getProperty(string); // get value for "string" key var boolean = app.getProperty(boolean); // get value for "boolean" key Parameters key — The key used to store and retrieve the value from the object store (cannot be a Symbol) value — The value to put into the object store Raises (Toybox Application ObjectStoreAccessException) — Thrown if setProperty() is called from a Background process (data should be passed back to the main application from background processes with Background.exit()) (Toybox Lang UnexpectedTypeException) — Thrown if setProperty() is called with a key or value of a disallowed type See Also getProperty() Background Programmer s Guide - Data Storage Properties Storage Since 1.0.0 validateProperty(key, value) ⇒ Object Validate a property being stored. Since 1.0.0
https://w.atwiki.jp/api_programming/pages/213.html
AppBase Index (A) » Toybox » Application Module Toybox Application Overview The Application module contains the base class for every Connect IQ app. The Application Module includes the AppBase class which is responsible for controlling the app life cycle. This module also includes set and get methods to control the settings and properties values held in the Object Store and a GOAL_TYPE enum that defines the different goal types that can be triggered. See Also Object Store - Programmer s Guide Since 1.0.0 Defined Under Namespace Modules Properties, Storage Classes AppBase, ObjectStoreAccessException Constant Summary GOAL_TYPE_STEPS = 0 Since 1.3.0 GOAL_TYPE_FLOORS_CLIMBED = 1 Since 1.3.0 GOAL_TYPE_ACTIVE_MINUTES = 2 Since 1.3.0 Instance Method Summary collapse getApp ⇒ Toybox Application AppBase Retrieve the AppBase Object that is currently running. Instance Method Details getApp ⇒ Toybox Application AppBase Retrieve the AppBase Object that is currently running. Returns (Toybox Application AppBase) — The currently running AppBase object Since 1.0.0
https://w.atwiki.jp/chrome_os/pages/22.html
Chrome OSについて Google Chrome OSとは? Googleが開発している高速で軽量なオペレーティングシステム。 当初はNetbook(ネットブック)をターゲットにしている。 Linuxカーネル上をGoogle新開発中のWindow System(ウインドウ システム)が動作する中でChromeブラウザが使える。 x86とARMの両方に対応している。 発売時期 2010年後半(予定) パートナー企業 PCメーカー企業 Acer ASUS Hewlett-Packard Lenovo 東芝 ソフトウェア企業Adobe 半導体企業Freescale Qualcomm Texas Instruments
https://w.atwiki.jp/tts-script/pages/20.html
■ TTSで使うAPIとは、 オブジェクトのクラス別(物とか、カウンターとか)に使える スクリプト集である? wiki検索--- APIとは、アプリケーションプログラムインターフェイスの略語で、プログラミングの際に使用できる命令や規約、関数等の集合の事を指す。 ソフトウェア開発の際、いちから全てを作るより、APIを利用すればもともとあるプログラムを呼び出して、その機能を組み込んだソフトウェアを開発することができる。 公式説明--- APIは、グローバルまたはのために一貫しているオブジェクトのスクリプトが、オブジェクトのスクリプトがアクセスできる必要があり、自己であるオブジェクトのスクリプトが接続されています。導入を見つけることができるここに。 The API is consistent for Global or Object Scripts, but Object Scripts have access to self which is the Object the script is attached to. An introduction can be found here.
https://w.atwiki.jp/suffix/pages/198.html
Opencv関連 Proce55ing関連 Web API関連 GoogleMapsAPI 色々なAPIまとめ モバイル関連 GPS取得 Android入門 jQuery Mobile Cordova モバイルアプリ開発の開発環境まとめ
https://w.atwiki.jp/googlepolicy/pages/19.html
Google の多くのサービスでは、お客様は他のユーザーと情報を共有できます。お客様が情報を公開されると、Google などの検索エンジンのインデックスの登録対象になることがあります。Google サービスでは、お客様のコンテンツの共有と削除に関して、さまざまなオプションをお客様に提供しています。 ここでも、標準では登録対象になり、インデックスからの削除は申請や設定が必要となるオプトアウト方式です。 コメントお寄せください。 名前 コメント
https://w.atwiki.jp/mccc/pages/20.html
このページでは Math API について解説する。 参考資料: Math API 5.6 - 数学関数 - Lua 5.1 リファレンスマニュアル 執筆時のバージョン: ComputerCraft 1.41 for Minecraft 1.2.5 Math API乱数 Math API Lua標準ライブラリのmathと同等。詳しくはLuaのリファレンス等を参照。 Luaのmathライブラリは、C言語の数学関数を元としている。 math.abs math.acos math.asin math.atan math.atan2 math.ceil math.cos math.cosh math.deg math.exp math.floor math.fmod math.frexp math.ldexp math.log math.log10 math.max math.min math.modf math.pow math.rad math.random math.randomseed math.sin math.sinh math.sqrt math.tan math.tanh 乱数 Luajの疑似乱数は内部的にjava.util.Randomクラスを利用している。 疑似乱数ジェネレータの仕様についてはJAVAのドキュメント等を参照。 math.randomseed( seed ) 整数seed(数値)を使って疑似乱数ジェネレータのシードを設定する 戻り値:nil math.random() 0以上、1未満の実数の疑似乱数を返す 戻り値:数値型(実数) math.random( n ) 1以上、n(数値)以下の整数の疑似乱数を返す 戻り値:数値型(整数) math.random( l , u ) l(数値)以上、u(数値)以下の整数の疑似乱数を返す 戻り値:数値型(整数)
https://w.atwiki.jp/uran/pages/91.html
https://w.atwiki.jp/blackzero/pages/6.html
コメントフォームです とりあえず書き込んでみた・・・・ -- (根暗レプリカ) 2007-03-03 00 30 50 根暗っちも何か書いてみてよ(ぁ -- (みずえ) 2007-03-04 18 08 45 何を書くやら・・・ -- (根暗レプリカ) 2007-03-04 21 45 40 今日の出来事なんか -- (みずえ) 2007-03-06 23 25 17 誰も何も書き込まないね~~~~ -- (根暗) 2007-07-23 20 40 31 (´・ω・) -- (ユージ) 2008-01-04 01 38 05 コメントフォームの存在に今気づいたぜ! -- (菅鉄人) 2010-10-06 10 47 03 名前 コメント すべてのコメントを見る